<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1,target-densitydpi=device-dpi "> 
<title>众创云购</title>
<link rel="stylesheet" href="css/zhongchuangyungou.css">
<script src="js/swiper.min.js"></script>
<link rel="stylesheet" href="css/swiper.min.css">
<script src="jq/jquery.js"></script>
</head>

<body>
<div class="tongping">
	<div class="huiyuan">
		<a href="jyscqg.html"><div class="huiyuan1 yanse">求购增值豆</div></a>
		<a href="dxzr.html"><div class="huiyuan2">定向转让</div></a>
		<a href="qgxx.html"><div class="huiyuan3">求购信息</div></a>
		<div class="fanhui_1">
			<a href="javascript:history.go(-1);">
				<img src="images/fh3.png" alt="">
			</a>
		</div>
		<div class="clearfix"></div>
	</div>
	<div class="gaodu"></div>
	<div class="xian"></div>
	<div class="qiugou">
		<input class="qiugou1" type="text" placeholder="请输入要购买的数量">
		<input class="qiugou2" type="button" value="求购">
	</div>
	<div class="jiaoyiguize">
		具体交易规则请查看
		<span class="jiaoyiguize1">
			《交易说明》
		</span>
	</div>
	<div class="fabushijian">
		<div class="fabushijian1">发布时间</div>
		<div class="fabushijian2">数量</div>
		<div class="fabushijian3">排队时间</div>
		<div class="fabushijian4">状态</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="shuzhi">
		<div class="shuzhi1">2017/07/02</div>
		<div class="shuzhi2">1000</div>
		<div class="shuzhi3">今天</div>
		<div class="shuzhi4">等待中</div>
		<div class="clearfix"></div>
	</div>
	<div class="gaodu"></div>
</div>
<div class="caidan">
	<a href="index.html">
		<div class="caidan_1">
			<div class="caidan_1_1">
				<img src="images/sc2.png" alt="">
			</div>
			<h1 class="caidan_2_2">
			商城
			</h1>
		</div>
	</a>
	<a href="ruanwen.html">
		<div class="caidan_1">
			<div class="caidan_1_1">
				<img src="images/wz2.png" alt="">
			</div>
			<h1 class="caidan_2_2">
				美文分享
			</h1>
		</div>
	</a>
	<a href="">
		<div class="caidan_1">
			<div class="caidan_1_1">
				<img src="images/zs2.png" alt="">
			</div>
			<h1 class="caidan_2_2">
				招商中心
			</h1>
		</div>
	</a>
	<a href="gerenzhongxinfenxiaohuiyuan.html">
		<div class="caidan_1">
			<div class="caidan_1_1">
				<img src="images/grzx1.png" alt="">
			</div>
			<h1 class="caidan_2_2">
				<span class="caidan_1_2">
				个人中心
				</span>
			</h1>
		</div>
	</a>
</div>
<div class="lijizhifu">
	<div class="lijizhifu1">
		<div class="peisong">
			<h2 class="peisong1">支付金额</h2>
			<h2 class="peisong2"><span class="secai">￥66.00元</span></h2>
			<div class="clearfix"></div>
		</div>
		<div class="lijizhifu2">
			<div class="lijizhifu21">
			<div class="lijizhifu22"><img src="images/xz-2.png" alt=""></div>
			<h2 class="lijizhifu23">支付方式</h2>
			</div>
			<h2 class="lijizhifu24">支付宝安全支付</h2>
			<div class="lijizhifu_tupian"><img src="images/zf2.png" alt=""></div>
			<div class="clearfix"></div>
		</div>
		<div class="lijizhifu2">
			<div class="lijizhifu21">
			<div class="lijizhifu22"><img src="images/xz-1.png" alt=""></div>
			<h2 class="lijizhifu23">支付方式</h2>
			</div>
			<h2 class="lijizhifu24">微信安全支付</h2>
			<div class="lijizhifu_tupian"><img src="images/zf1.png" alt=""></div>
			<div class="clearfix"></div>
		</div>
		<div class="lijizhifu_bottom">立即支付</div>
	</div>
</div>
<script>
	$(function(){
		// 点击提交订单，出现遮罩层
		$('.qiugou2').click(function(event) {
			/*$('.lijizhifu').animate({
				height:'100%'
			},1000)*/
			$('.lijizhifu').fadeIn(100);
		});
		// 点击切换选择radio
		$('.lijizhifu22').click(function(){
			// console.log($(this).children('img').attr('src').charAt(10));
			if($(this).children('img').attr('src').charAt(10)=='2'){
				$(this).children('img').attr('src','images/xz-1.png');
				$(this).parent('.lijizhifu21').parent('.lijizhifu2').siblings('.lijizhifu2').children('.lijizhifu21').children('.lijizhifu22').children('img').attr('src','images/xz-2.png')
			}else{
				$(this).children('img').attr('src','images/xz-2.png');
				$(this).parent('.lijizhifu21').parent('.lijizhifu2').siblings('.lijizhifu2').children('.lijizhifu21').children('.lijizhifu22').children('img').attr('src','images/xz-1.png')
				
			}
		})
	})
	// 点击遮罩层外边，立即支付消失
	var lijizhifu = document.querySelector('.lijizhifu');
	var lijizhifu1 = document.querySelector('.lijizhifu1');
	lijizhifu.addEventListener('click',function(event){
		if(event.target.classList[0]==='lijizhifu'){
			$('.lijizhifu').fadeOut(100);
			return;
		}else{
			console.log('选择的不在遮罩层内');
		}
	})
</script>
</body>
</html>
